﻿using B.S.XZYData.Domain.BaseEntities;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.XZYData.Domain.RBAC
{
    /// <summary>
    /// 用户角色中间实体Model
    /// </summary>
    [SugarTable("AccountRoleModel")]
    public class AccountRoleModel : BaseEntity
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [SugarColumn(ColumnName = "AccountId", IsNullable = false)]
        public long AccountId { get; set; }
        
        /// <summary>
        /// 角色id
        /// </summary>
        [SugarColumn(ColumnName = "RoleId", IsNullable = false)]
        public long RoleId { get; set; }
    }
}
